//
//  LFBNetworkManager.h
//  loveFreshBeen
//
//  Created by Feng on 2017/7/9.
//  Copyright © 2017年 feng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>

@interface LFBNetworkManager : AFHTTPSessionManager

+ (instancetype)sharedManager;

/**
 6.1.1首页数据请求
 
 @param resultBlock 数据回调
 */
+ (void)getHomeData:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

/**
 6.1.2新鲜特卖数据请求
 
 @param resultBlock 返回数据回调
 */
+ (void)getNovelSALEData:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

/**
 6.1.3程序启动广告数据请求
 
 @param resultBlock 返回广告起请求数据
 */
+ (void)getApplicationLaunchAdvertData:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

/**
 6.2.1闪电超市数据请求
 
 @param resultBlock 返回闪电超市请求数据
 */
+ (void)getLightningSupermarketData:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

/**
 6.3.1搜索最新关键词请求
 
 @param resultBlock 返回搜索最新关键字数据
 */
+ (void)searchNewKeyWords:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

/**
 6.3.2搜索返回数据
 
 @param resultBlock 返回搜索数据
 */
+ (void)searchResponseData:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

/**
 6.4.1获取订单信息
 
 @param resultBlock 返回我的订单信息
 */
+ (void)getMineIndent:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

/**
 6.4.2我的优惠券
 
 @param resultBlock 请求结果回调
 @param failureBlock 请求失败回调
 */
+ (void)mineCoupon:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

/**
 6.4.3系统消息
 
 @param resultBlock 请求结果回调
 @param failureBlock 请求失败回调
 */
+ (void)systemInfo:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

/**
 6.4.4我的消息
 
 @param resultBlock 请求结果回调
 @param failureBlock 请求失败回调
 */
+ (void)mineMessage:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

/**
 6.4.5收货地址列表
 
 @param resultBlock 请求结果回调
 @param failureBlock 请求失败回调
 */
+ (void)receivingAddressList:(void(^)(id responseObject))resultBlock failure:(void(^)(NSError *error))failureBlock;

@end
